Skip to content

Conversation

simnalamburt
Copy link
Contributor

Even if g:lsp_preview_float is true, vim-lsp should call :pclose if s:use_vim_popup is false.

@mattn
Copy link
Collaborator

mattn commented Feb 25, 2020

Is this fixing #712 ?

@simnalamburt
Copy link
Contributor Author

Is this fixing #712 ?

Unfortunately it seems to be unrelated

@simnalamburt
Copy link
Contributor Author

I've rebased it!

@mattn
Copy link
Collaborator

mattn commented Mar 1, 2020

Thank you. Could you please explain how to reproduce your issue and repro steps.

@simnalamburt
Copy link
Contributor Author

simnalamburt commented Mar 1, 2020 via email

Even if `g:lsp_preview_float` is true, vim-lsp should call `:pclose` if
`s:use_preview` is true.
@simnalamburt
Copy link
Contributor Author

@mattn How to reproduce:

  1. Prepare vim 8 with has('patch-8.1.1517') == 0. You'll get it if you just apt-get install vim in Debian 10.
  2. Setup vim-lsp
  3. On random identifier, invoke :LspHover
  4. On another random identifier, invoke :LspHover again.
  5. Then you'll get below. Two preview windows are open and you can't close it in normal way.

image

@mattn
Copy link
Collaborator

mattn commented Mar 3, 2020

Thank you. I'll look this in later.

@mattn
Copy link
Collaborator

mattn commented Mar 3, 2020

has('patch-8.1.1517') == 0

Ah, I understand what this change fix now.

@mattn mattn merged commit 9fa593a into prabirshrestha:master Mar 3, 2020
@mattn
Copy link
Collaborator

mattn commented Mar 3, 2020

Thank you.

@simnalamburt simnalamburt deleted the fix-preview branch March 3, 2020 14:40
simnalamburt added a commit to simnalamburt/.dotfiles that referenced this pull request Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants